package com.yu.footballpromotionliveadmin.dao;

import com.yu.footballpromotionliveadmin.page.PageInfo;
import com.yu.footballpromotionliveadmin.pojo.ActivityType;

import java.util.List;

public interface ActivityTypeDao {
    public List<ActivityType> getAllActivityTypes()  throws Exception;
    public ActivityType  getActivityTypeByUno(String actno)  throws Exception;
    public List<ActivityType> getActivityTypesByPage(PageInfo pageInfo);
    //增删改的返回值都是整数
    Integer deleteActivityType(String actno)  throws Exception;
    Integer updateActivityType(ActivityType activityType)  throws Exception;
    Integer addActivityTypeByUno(ActivityType activityType)  throws Exception;

    ActivityType getActivityTypesWithOrders(String actno)throws Exception;

    ActivityType getAccountByAccountName(String actno)throws Exception;
}
